package com.softeem.example;

public class SchoolFactory {
	
	public static final String TEACHER = "teacher";
	public static final String STUDENT = "student";
	
	public static Object getInstance(String type){
		switch(type){
		case TEACHER:
			return Teacher.getInstance();
		case STUDENT:
			return Student.getInstance();
		}
		return null;
	}
	
	private static Student getStudent(){
		
		return Student.getInstance();
	}
	
	private static Teacher getTeacher(){
		
		return Teacher.getInstance();
	}
}